package com.crane.oss.sys.bean.request.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2019年01月03日 14时07分33秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "新增参数")
public class AddApiRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "接口名称", name = "name")
    @NotNull(message = "name不能为空")
    @Size(max = 50, message = "name长度超长")
    private String name;

    @ApiModelProperty(value = "接口类型", name = "type")
    private Integer type;

    @ApiModelProperty(value = "接口地址", name = "url")
    @Size(max = 50, message = "url长度超长")
    private String url;

    @ApiModelProperty(value = "接口权限名称", name = "permission")
    @Size(max = 100, message = "permission长度超长")
    private String permission;

    @ApiModelProperty(value = "接口描述", name = "description")
    @Size(max = 200, message = "description长度超长")
    private String description;

    @ApiModelProperty(value = "状态", name = "status")
    private Integer status;


}
